package unitTest.bl;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import enums.BLToViewResultMessage;

import businessLogic.FavorController;

public class FavorControllerTest {
	
	private FavorController favorController;

	@Before
	public void setUp() throws Exception {
		favorController = new FavorController();
	}

	@Test
	public void testRequireFavor() {
		assertEquals(BLToViewResultMessage.FAVOR_SUCCESS, favorController.requireFavor(3));
	}

	@Test
	public void testCancelFavor() {
		assertEquals(BLToViewResultMessage.CANCEL_FAVOR_SUCCESS, favorController.cancelFavor(5));
	}

}
